package com.smh.mybatistest;

import com.smh.mybatistest.dao.po.User;
import com.smh.mybatistest.mapper.UserMapper;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
public class MybatisTestApplication {

    public static void main(String[] args) {
        SpringApplication.run(MybatisTestApplication.class, args);
    }

    @Bean
    public User getUser(UserMapper userMapper) {
        User user = userMapper.getById(1L);
        System.out.println(user);
        return user;
    }

}
